<!--添加栏目-->
<div class="dialog_content">
	<form id="info_form" action="{:U('config/add_value')}" method="post">
		<table width="100%" class="table_form">
			<tr>
				<td>请填写值</td>
				<td>
					<input type="hidden" name="id" value="{$id}">
					<input type="text" class="form-control" name="value" value="{$value}">
				</td>
			</tr>
		</table>
	</form>
</div>
<script>
$(function(){
	$.formValidator.initConfig({formid:"info_form",autotip:true});
	$('#info_form').ajaxForm({success:complate,dataType:'json'});
	function complate(result){
		if(result.errNum === 0){
			$.dialog.get('add_value').close();
			$.yhxia.tip({content:result.retData});
			window.location.reload();
		} else {
			$.yhxia.tip({content:result.errMsg, icon:'alert'});
		}
	}
});
</script>